package com.whale.api;

public class WebApiUrlConfig {

    public static final String BASE_URL               = "http://showxun.com:5000"; // 199.68.198.154

    /**
     * [POST] username: 目前只有email password: 密码
     */
    public static final String USER_LOGIN             = "/user/login/";

    /**
     * [GET]
     */
    public static final String USER_LOGOUT            = "/user/logout/";

    /**
     * [POST] email : 邮箱，需要验证格式 name : 姓名 password : 密码 rpassword : 再一次密码
     */
    public static final String USER_REGISTER          = "/user/register/";

    /**
     * [GET]
     */
    public static final String FOLLOW_RECOMMEND       = "/follow/s/";

    /**
     * /follow/<int:fuid>/ [GET] fuid : 将要被关注人的id
     */
    public static final String FOLLOW_USER            = "/follow/";

    /**
     * /follow/r/<int:fuid>/ [GET] fuid : 取消关注此人
     */
    public static final String FOLLOW_CANCEL          = "/follow/r/";

    /**
     * /follow/m/<int:offset>/<int:size>/ [GET] offset : 翻页 size : 每页数量
     */
    public static final String FOLLOW_ME              = "/follow/m/";

    /**
     * [GET]
     */
    public static final String FOLLOW_ME_COUNT        = "/follow/m/count/";

    /**
     * /follow/o/<int:offset>/<int:size> 我关注的人 [GET] offset : 翻页 size : 每页数量
     */
    public static final String FOLLOW_OTHERS          = "/follow/o";

    /**
     * 我关注人的数量
     */
    public static final String FOLLOW_OTHERS_COUNT    = "/follow/o/count/";

    /**
     * /follow/myfirends/<int:offset>/<int:size>/ 我的朋友(双向关注) [GET] offset : 翻页 size : 每页数量
     */
    public static final String FOLLOW_MYFIRENDS       = "/follow/myfirends/";

    /**
     * 朋友数量(双向关注)
     */
    public static final String FOLLOW_MYFIRENDS_COUNT = "/follow/myfriends/count/";

    /**
     * 各种总数汇总
     */
    public static final String FOLLOW_COUNT           = "/follow/count/";

    /**
     * /comments/<int:sid>/<int:offset>/<int:size>/ 翻页查看评论 sid : 分享的id offset: 翻页 size : 页大小
     */
    public static final String COMMENTS               = "/comments/";

    /**
     * /comments/count/<int:sid>/ 评论数量 [GET] sid : 分享id
     */
    public static final String COMMENTS_COUNT         = "/comments/count";

    /**
     * /comments/r/<int:id>/ 删除评论 [GET] id : 评论id
     */
    public static final String COMMENTS_DELETE        = "/comments/r/";

    /**
     * 发布评论 [POST] sid : 评论对象分享id content : 内容
     */
    public static final String COMMENTS_ADD           = "/comments/add/";

    /**
     * 发布stream [POST] content : 文字说明 image : 图片url tags : 标记可多个 scope : 评分 address : 地址 latitude :经度 longitude :维度
     */
    public static final String STREAM_ADD             = "/stream/add/";

    /**
     * 查看stream [GET] id : stream id
     */
    public static final String STREAM_VIEW            = "/stream/v/<id>/";

    /**
     * /stream/w/<int:uid>/<int:sid>/<int:size>/ 查看某人的wall [GET] uid : 被查看人 sid : stream id,按sid 排序，0为null size : 页大小
     */
    public static final String STREAM_WALL            = "/stream/w/";

    /**
     * /stream/m/<int:id>/<int:size>/ main stream [GET] id : 按id排序，0为 null size : 页大小
     */
    public static final String STREAM_ME              = "/stream/m/";

    /**
     * /stream/r/<int:id>/ 删除某个stream [GET] id : stream id
     */
    public static final String STREAM_DELETE          = "/stream/r/";

    /**
     * /location/<float:latitude>/<float:longitude>/ [GET]经纬度
     */
    public static final String LOCATION               = "/location/";

    /**
     * 上传图片 [POST] imgFile : 图片文件
     */
    public static final String UPLOAD_IMG             = "/upload/f/";
    /**
     * 上传头像的图片固定(64*64) [POST] imgFile : 图片文件
     */
    public static final String UPLOAD_AVATAR          = "/upload/hf/";

}
